﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _21结构
{
    public enum Gong
    {
        男,
        女
    }

    public struct flag
    {
        public string ang;
        public int sex;
        public Gong csa;
    }

    class Program
    {
        static void Main(string[] args)
        {
            flag zs;
            zs.ang = "张三";
            zs.sex = 12;
            zs.csa = Gong.男;
            Console.WriteLine("我叫{0},今年{1},是{2}生",zs.ang,zs.sex,zs.csa);

            flag xl;
            xl.ang = "小兰";
            xl.sex = 12;
            xl.csa = Gong.女;
            Console.WriteLine("我叫{0},今年{1},是{2}生", xl.ang, xl.sex, xl.csa);

            Console.ReadLine();
        }
    }
}
